package com.welsmann.app.start.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 假日类
 * @author Welsmann
 *
 */
@Entity
@Table(name = "holiday")
public class Holiday extends BaseEntity{

	private static final long serialVersionUID = 6161553266480270193L;

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	private String id;
	
	@Column(name = "title", nullable = false, length = 50)
	private String title;
	
	@Column(name = "month", nullable = false, length = 2)
	private int month;
	
	@Column(name = "day", nullable = false, length = 2)
	private int day;
	
	@Column(name = "type", nullable = false, length = 2)
	private int type;
	
	@Column(name = "plain", nullable = true, length = 2000)
	private String plan;
	
	public Holiday() {
		
	}
	
	public Holiday(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public int getDay() {
		return day;
	}

	public void setDay(int day) {
		this.day = day;
	}
	
	public int getType() {
		return type;
	}
	
	public void setType(int type) {
		this.type = type;
	}

	public String getPlan() {
		return plan;
	}

	public void setPlan(String plan) {
		this.plan = plan;
	}
	
}
